package myutil.mylist;

/**
 *
 * @author Hlib_Babii
 */
public interface MyQueue<T> {
    
    /**
     * puts element to the end of the queue if possible
     * @param e elements to be put
     */
    void offer(T e);
    
    /**
     * Retrieves the first element of the queue
     * @return the first element of the queue
     */
    T peek();
    
    /**
     * Retrieves and removes the first element of the queue
     * @return the first element of the queue
     */
    T poll();
}
